<%@page pageEncoding="UTF-8"%>
<html>
<head>
<title>Tutorial: Select</title>
<link rel="stylesheet" type="text/css" href="${f:url('/css/sa.css')}" />
</head>
<script type="text/javascript">
	function onSelectF() {
		alert(document.getElementById("facilityNo").value);
		document.forms[0].submit();
	}
</script>
<body>

<h1>Tutorial: Select</h1>

<html:errors/>
<s:form action="changeFacility">
	<html:select styleId="facilityNo" property="facilityNo"
   onchange="onSelectF();">
		<html:option value=""></html:option>
		<html:optionsCollection name="facilityItems" />
	</html:select>
	<br />
	${f:h(facilityNo)}<br />
</s:form>

	${f:h(facilityEntity.facilityName)}<br />
<bean:write name="facilityEntity" property="facilityName"/>

</body>
</html>